<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page session="false"%>
<html>
<head>
<title>PM Information Page</title>
</head>
<body>
	<h3 style="text-align: right;"> Welcome | 
		<a href="${pageContext.request.contextPath}">Logout</a>
	</h3>
	<div align="center" style="padding-top: 50px;">
		<h1>List User</h1>
		<form action="" method="POST">
			<table style="font-size: 15pt" border="1">
				<thead>
					<tr>
						<th>No.</th>
						<th>Username</th>
						<th>Full Name</th>
						<th>Address</th>
						<th>Phone</th>
						<th>Group</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${users}" var="user" varStatus="count">
						<tr>
							<td>${count.count}</td>
							<td>${user.username}</td>
							<td>${user.fullname}</td>
							<td>${user.address}</td>
							<td>${user.phone}</td>
							<td>${user.group.code}</td>
						</tr>
					</c:forEach>
				</tbody>

			</table>
			<div style="padding-top: 15px; padding-left: 351px;">
				<a
					href="${pageContext.request.contextPath}/createPM"><input
					type="button" value="Add New PM" /></a>
			</div>
		</form>
	</div>
</body>
</html>
